#pragma once
#include "DirectX.h"
#include "dxinput.h"
#include <memory>
#include "Sprite.h"
#include "ResourceManager.h"
#include "Screen.h"
#include "CMarioSound.h"

using namespace std;

class CInfo
{
protected:
	shared_ptr<Sprite> _marioText;
	shared_ptr<Sprite> _coinInfo;
	shared_ptr<Sprite> _gameOver;
	shared_ptr<Sprite> _score;
	shared_ptr<Sprite> _chooser;

	LPDIRECT3DSURFACE9 _mainMenu;
	LPDIRECT3DSURFACE9 _helpMenu;

	int _menuIndex;
	float _MenuTop;
	float _MenuLeft;
	float delayTime;
	bool _isViewHelp;
public:
	CInfo(void);
	CInfo(CResourceManager *rm);
	~CInfo(void);

	void Render(int life, int coin, int score);
	void RenderNumber(int number, float x, float y);
	void RenderDynamicNumber(int number, float x, float y);
	void RenderGameOver(int x, int y);
	void RenderMenu();
	void KeyProcess(int &Action);
	int getMenuIndex() {return _menuIndex;};
	void setViewHelp(bool viewHelp){ _isViewHelp = viewHelp;};
	bool getViewHelp(){return _isViewHelp;};

public:
	static const int ACTION_NEWGAME = 0;
	static const int ACTION_RESUME = 1;
	static const int ACTION_SAVEGAME = 3;
	static const int ACTION_LOADGAME = 2;
	static const int ACTION_HELPMENU = 4;
	static const int ACTION_QUIT = 5;
};

